home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / biblio / bibtex / utils / bibclean / xstat.h < prev    next >
C/C++ Source or Header  |  1992-10-06  |  2KB  |  65 lines

  1. /* -*-C-*- xstat.h */
  2. /**********************************************************************/
  3. /******************************** stat ********************************/
  4. /**********************************************************************/
  5.  
  6. /* $Id: xstat.h,v 1.6 1992/10/08 01:42:01 beebe Exp beebe $
  7.  * $Log: xstat.h,v $
  8.  * Revision 1.6  1992/10/08  01:42:01  beebe
  9.  * Update for C++.
  10.  *
  11.  * Revision 1.5  1992/07/10  18:06:46  beebe
  12.  * Add use of HAVE_STAT_H.
  13.  *
  14.  * Revision 1.4  1992/03/06  19:38:15  beebe
  15.  * *** empty log message ***
  16.  *
  17.  * Revision 1.3  1992/03/06  14:58:06  beebe
  18.  * Complete two-month long development of version 3.0.114.  See
  19.  * 00revhst.txt for details.
  20.  *
  21.  * Revision 1.2  1992/02/29  19:42:20  beebe
  22.  * Update for version 3.0.114 [29-Feb-1992] following two-month
  23.  * major overhaul and compilation testing on numerous machines.
  24.  *
  25.  * Revision 1.2  1992/02/29  19:42:20  beebe
  26.  * Update for version 3.0.114 [29-Feb-1992] following two-month
  27.  * major overhaul and compilation testing on numerous machines.
  28.  *
  29.  */
  30.  
  31. #ifndef XSTAT_H_DEFINED_
  32. #define XSTAT_H_DEFINED_
  33.  
  34. /***********************************************************************
  35. This file includes the system stat.h file, which does not have a
  36. standard location.
  37.  
  38. On ULTRIX and System V, the system stat.h cannot be included more than
  39. once, because the compilers raise errors about duplicate (although
  40. identical) definitions of struct stat; the code here prevents that
  41. from happening.
  42. ***********************************************************************/
  43.  
  44. #ifndef OS_H_DEFINED_
  45. #include "os.h"
  46. #endif /* OS_H_DEFINED_ */
  47.  
  48. #include "xtypes.h"
  49.  
  50. #if HAVE_STAT_H
  51. #if HAVE_SYS_DIR
  52. #include <sys/stat.h>
  53. #else /* NOT HAVE_SYS_DIR */
  54. #include <stat.h>
  55. #endif /* HAVE_SYS_DIR */
  56. #endif /* HAVE_STAT_H */
  57.  
  58. #if !__cplusplus
  59. #if ultrix && (mips || __LCC__)        /* supply missing prototypes */
  60. int        fstat ARGS((int file_desc_, struct stat *buffer_));
  61. #endif /* ultrix && (mips || __LCC__) */
  62. #endif /* !__cplusplus */
  63.  
  64. #endif /* XSTAT_H_DEFINED_ */
  65.